const { versionID, appID, rootID } = require("../generator");

module.exports = {
    up: (queryInterface, Sequelize) => {
        return queryInterface.bulkInsert(
            "t_app_version",
            [
                {
                    id: versionID,
                    app_id: appID,
                    version_name: "3.0",
                    cacheKey: null,
                    platform: "000",
                    remark: "test remark",
                    create_user_id: rootID,
                    modify_user_id: rootID,
                    create_time: new Date(),
                    modify_time: new Date()
                }
            ],
            {}
        );
    },

    down: (queryInterface, Sequelize) => {
        return queryInterface.bulkDelete("t_app_version", null, {});
    }
};
